package org.zfes.snowier.cloud.zbss.pmp.model;
import org.zfes.snowier.common.dao.IBaseModel;
public class PmpProjectVersion extends IBaseModel{

	private static final long serialVersionUID = 1L;
	
	public PmpProjectVersion() {}
	public PmpProjectVersion(Long id) {
		this.setId(id);
	}
	//<-------------------------------------------->

	public PmpProjectVersion(Long projectId, String version, String remark) {
		super();
		this.projectId = projectId;
		this.version = version;
		this.remark = remark;
	}


	@javax.validation.constraints.NotNull(message="所属项目不能为空")
	  private java.lang.Long projectId;
	
	@javax.validation.constraints.NotBlank(message="版本名不能为空")
	@javax.validation.constraints.NotNull(message="版本名不能为空")
	@org.hibernate.validator.constraints.Length(min=0,max=20,message="版本名长度不能大于20")
	  private java.lang.String version;
	  private java.util.Date updatetime;
	  private java.util.Date createtime;
	  private java.util.Date   publishTime;
	@javax.validation.constraints.NotNull(message="状态不能为空")
	  private java.lang.Byte status;
 
	@org.hibernate.validator.constraints.Length(min=0,max=255,message="备注长度不能大于255")
	  private java.lang.String remark;
 
	//<-------------------------------------------->
	public PmpProjectVersion setProjectId(java.lang.Long projectId){
	 this.projectId=projectId;
	 return this;
	}
	public java.lang.Long getProjectId(){
		return this.projectId;
	}
	public PmpProjectVersion setVersion(java.lang.String version){
		this.version=version==null?null:version.trim();
	 return this;
	}
	public java.lang.String getVersion(){
		return this.version;
	}
	public PmpProjectVersion setUpdatetime(java.util.Date updatetime){
	 this.updatetime=updatetime;
	 return this;
	}
	public java.util.Date getUpdatetime(){
		return this.updatetime;
	}
	public PmpProjectVersion setCreatetime(java.util.Date createtime){
	 this.createtime=createtime;
	 return this;
	}
	public java.util.Date getCreatetime(){
		return this.createtime;
	}
	public PmpProjectVersion setStatus(java.lang.Byte status){
	 this.status=status;
	 return this;
	}
	public java.lang.Byte getStatus(){
		return this.status;
	}
	public PmpProjectVersion setRemark(java.lang.String remark){
		this.remark=remark==null?null:remark.trim();
	 return this;
	}
	public java.lang.String getRemark(){
		return this.remark;
	}
	public java.util.Date getPublishTime() {
		return publishTime;
	}
	public void setPublishTime(java.util.Date publishTime) {
		this.publishTime = publishTime;
	}

}
